/* ============================
   SMALL SCREENS (max-width: 400px)
   ============================ */
@media screen and (max-width: 400px) {

  /*Body*/
  body {
    width: 100vw;
    height: 100vh;
    padding: 50px;
    margin: 20px;
    background-color: azure;
    background-image: url(/images/placeholder-images/tripBG.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; 
  }

  /* Header layout */
  header {
    flex-direction: column;
    text-align: center;
    padding: 10px;
    gap: 10px;
  }

  #logo img {
    height: 70px;
    width: auto;
    align-items: center;
  }

  /* Navigation menu */
  nav {
    height: auto;
    padding: 1rem;
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  /* Main grid becomes 1 column */
  .main-container {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  /* Content blocks stack vertically */
  .grid.content {
    grid-column: span 1;
  }

  /* Sidebar becomes full width */
  .grid.sidebar .section {
    max-width: 100%;
    margin-top: 10px;
  }

  /* Images scale properly */
  .image-wrapper .the-image,
  .the-image {
    max-width: 100%;
    width: 100%;
    margin: 10px auto;
  }

  /* Table container scrolls horizontally */
  .table-container {
    width: 100%;
    overflow-x: auto;
  }

  /* Strategic planning blocks */
  #content {
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
  }

  .content-mission,
  .content-vision {
    width: 100%;
    min-width: unset;
  }

  /* Four-layout grid becomes single column */
  #fourlayout {
    grid-template-columns: 1fr;
    margin: 10px;
  }

  #fourlayout > div {
    width: 100%;
    height: auto;
    margin: 10px 0;
  }

  /* Footer layout */
  footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }

  .footer-logo {
    position: static;
    margin-bottom: 20px;
  }

  .element-information {
    margin: 0;
    padding: 0;
  }

  .socials {
    margin: 10px auto;
    justify-content: center;
  }
}
